home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- global r1, g1, b1, X, Y, squarecolor
- repeat while the mouseDown
- if Y < 17 then
- Y = Y + 1
- set the locV of sprite 32 to the locV of sprite 32 - 15
- set the locV of sprite 31 to the locV of sprite 32 + 10
- set the locH of sprite 31 to the locH of sprite 32 + 10
- if squarecolor = "red" then
- r1 = 15 * Y
- g1 = X * 15 / 17 * Y
- b1 = g1
- else
- if squarecolor = "yellow" then
- r1 = 15 * Y
- g1 = r1
- b1 = X * 15 / 17 * Y
- else
- if squarecolor = "green" then
- r1 = X * 15 / 17 * Y
- g1 = 15 * Y
- b1 = r1
- else
- if squarecolor = "cyan" then
- r1 = X * 15 / 17 * Y
- g1 = 15 * Y
- b1 = g1
- else
- if squarecolor = "blue" then
- r1 = X * 15 / 17 * Y
- g1 = r1
- b1 = 15 * Y
- else
- if squarecolor = "purple" then
- r1 = 15 * Y
- g1 = X * 15 / 17 * Y
- b1 = r1
- end if
- end if
- end if
- end if
- end if
- end if
- put sprite(32).color
- sprite(32).color = rgb(r1, g1, b1)
- end if
- put Y * 15 / 2.54999999999999982 into field "b field"
- startTimer()
- repeat while the timer < 10
- nothing()
- end repeat
- updateStage()
- end repeat
- end
-